<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../css/general.css" rel="stylesheet" type="text/css">
	<link href="../css/main.css" rel="stylesheet" type="text/css">
	<title></title>
</head>
<body>
	<h1>
		<span class="action-span"><a href="pipeAdd">添加新渠道</a></span> 
		<span class="action-span1">渠道列表 </span>
		<div style="clear: both"></div>
	</h1>
	<div class="list-div" id="listDiv">
		<table cellpadding="3" cellspacing="1">
			<tbody><tr>
				<th>编号</th>
				<th>渠道名称</th>
				<th>所属通道</th>
				<th>通道指令</th>
				<th>合作方</th>
				<th>结算价格(元)</th>
				<th>扣量比例</th>
				<th>MO</th>
				<th>合作状态</th>
			</tr>

<c:forEach items="${pipes}" var="pipe">
<tr>
<td>${pipe.id}</td>
<td><a href="pipeEdit?id=${pipe.id}">${pipe.name}</a>
</td>
<td>${pipe.channel.name}</td>
<td>${pipe.cmd}</td>
<td>${pipe.partner.name}</td>
<td>${pipe.price}</td>
<td>${pipe.deduction}</td>
<td><c:if test="${pipe.needMO == 1}">同步</c:if><c:if test="${pipe.needMO == 0}">不同步</c:if></td>
<td>
<c:if test="${pipe.status == 1}"><font color="green">合作中</font></c:if>
<c:if test="${pipe.status == 0}"><font color="red">终止合作</font></c:if>
<c:if test="${pipe.status == 2}"><font color="#888822">测试中</font></c:if>
</td>
</tr>
</c:forEach>


		</tbody></table>
	</div>

</body>
</html>